/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.pucp.dp1.gui.bd;

import java.util.ArrayList;
import java.rmi.*;

/**
 *
 * @author javier
 */


public interface IBaseDatos extends Remote{
    //SEGURIDAD=========================================================================
    public boolean AutorizarAcceso(String usuario, String contrasenia)throws RemoteException;
    //PROCESAMIENTO=========================================================================
    public ArrayList GetZonasAAplicarAlgoritmo(int dia, int hora)throws RemoteException;
    public int GetVelocidadAvenida(String sentido, int numeroAvenida)throws RemoteException;
    public Punto CoordenadasDeZona(int zona)throws RemoteException;
    public int ZonaDeCoordenadas(int x, int y)throws RemoteException;
    public void SetZonaAAplicarAlgoritmo(int zona, int dia, int hora, boolean aplicarAlgoritmo)throws RemoteException;
    public void EliminarInterseccion(int x, int y)throws RemoteException;
    public void AgregarInterseccion(int x, int y)throws RemoteException;
    public ArrayList<Punto> InterseccionesDeZona(int x, int y)throws RemoteException;
}
